﻿using Entity;
using System;
using System.Collections.Generic;
using System.Text;
using Utils;

namespace DataBaseConnect.App
{
    public interface ILeaveAppService
    {

        /// <summary>
        ///  添加请假信息
        /// </summary>
        /// <param name="Input">参数实体</param>
        /// <returns></returns>
        ReceiveStatus AddLeaveMsg(Leave Input);

        /// <summary>
        /// 查询所有假单&&根据假单名称查询
        /// </summary>
        /// <param name="Name"></param>
        /// <returns></returns>
        List<Leave> GetLeaveAllMsg(string Name);

        /// <summary>
        /// 根据id查询假单
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Leave GetLeaveIdMsg(int Id);
    }
}
